layui.use(['form','jquery','layer'],function () {
    var form = layui.form;
    var $ = layui.$;
    var layer = layui.layer;

    //关闭按钮
    $('#close').click(function () {
        var layer = parent.layer;
        layer.close(layer.index);
    })
    //确定按扭
    $('#confirm').click(function () {
        $.ajax({
            url: '/login/getUsersByEmailPhoneIdCardStatusSexEnabled',
            data: form.val('userForm'),
            dataType: 'json',
            success: function (data) {
                parent.usersTable(data.data.data);
                var layer = parent.layer;
                layer.close(layer.index);
            }
        })
    });
})